package com.quinn.myDemo.testforcode;

import com.alibaba.fastjson.JSONPath;
import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.AlibabaAlihealthDrugBillUpbillDetailWithcodeRequest;
import com.taobao.api.request.AlibabaAlihealthDrugKytListpartsRequest;
import com.taobao.api.response.AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse;
import com.taobao.api.response.AlibabaAlihealthDrugKytListpartsResponse;

import java.util.ArrayList;

/**
 * KytDetailWithcode
 *
 * @author HanQuinn
 * Date: 2024/9/24
 * Time: 18:19
 */
public class KytDetailWithcode {

    public static void main(String[] args) {
        try {
            TaobaoClient client = new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", "34695618", "37ade9e9219e9dc86bf58d2e1c5282b9");
            AlibabaAlihealthDrugBillUpbillDetailWithcodeRequest req = new AlibabaAlihealthDrugBillUpbillDetailWithcodeRequest();
            req.setRefEntId("eddba00125164822823e6484c35d5d93");
            req.setBillCode("8007829613");
            req.setFromRefUserId("eddba00125164822823e6484c35d5d93");
            req.setToRefUserId("eddba00125164822823e6484c35d5d93");
            AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse rsp = client.execute(req);
            System.out.println(rsp.getBody());

        } catch (ApiException e) {

            System.out.println(e.getSubErrMsg());
        }
    }
}
